package com.fzz.learnitservice.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 聊天记忆表
 * </p>
 *
 * @author 小菜钊
 * @since 2025-11-07
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("chat_memory")
public class ChatMemory implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 对话标识
     */
    private Long conversationId;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 内容
     */
    private String content;

    /**
     * 角色 1：用户；2：助手
     */
    private Integer role;

    /**
     * 用户ID
     */
    private Long userId;


}
